<?php
/* @var $this RoomController */
$this->pageTitle = Yii::app()->name.'-'.'房间管理-列表';
$this->breadcrumbs=array(
	'Room',
);
?>
<!-- Page Head -->
			<h2><?php echo CHtml::link("房间操作",$this->createUrl("room/index"));?></h2>
					<?php echo $this->renderPartial("topMenu");?>
			
			<div class="content-box">
			<!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>房间详细-<?php echo $model->RoomName;?><span style="margin-left:20px;">[<?php echo CHtml::link("编辑",$this->createUrl("update",array("id"=>$model->Id)));?>]</span></h3>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content" >

								<div class="row">
									<ul>
										<li>	<span><?php echo CHtml::activeLabel($model, "RoomName"); ?>:</span>
										<?php echo CHtml::encode($model->RoomName);?>
										</li>
										<li>
											<span><?php echo CHtml::activeLabel($model, "RoomFirstName"); ?>:</span>
											<?php echo CHtml::encode($model->RoomFirstName);?>
										</li>
										
									</ul>
								
								</div>
								<div class="clear"></div>
								<div class="row">
									<ul><li class="mediu-line">	<span><?php echo CHtml::activeLabel($model, "Introduce"); ?>:</span>
										<?php echo CHtml::encode($model->Introduce);?></li></ul>
								</div>
								<div class="row">
									<ul>
										<li>
										<span><?php echo CHtml::activeLabel($model, "RoomType"); ?>:</span>
										<?php echo ($model->RoomType==0)?"系统房间":"用户房间"?></li>
										<li>
										<span><?php echo CHtml::activeLabel($model, "UpLimit"); ?>:</span>
										<?php echo CHtml::encode($model->UpLimit);?></li>
									</ul>
								</div>
								<div class="row">								
									<ul>
										<li>
										<span><?php echo CHtml::activeLabel($model, "Creator"); ?>:</span>
										<?php echo $model->Creator;?></li>
										<li>
										<span><?php echo CHtml::activeLabel($model, "RoomPri"); ?>:</span>
										<?php echo ($model->RoomPri==0)?"系统房间":"用户房间";?></li>
									</ul>
								</div>
								<div class="row">								
									<ul>
										<li>
										<span><?php echo CHtml::activeLabel($model, "Commend"); ?>:</span>
										<?php echo CHtml::encode($model->Commend);?></li>
										<li>
										<span><?php echo CHtml::activeLabel($model, "RoomIsShow"); ?>:</span>
										<?php echo ($model->RoomIsShow==0)?"显示":"隐藏";?></li>
									</ul>
								</div>
								<div class="row">
									<h5>当前房间内用户列表:</h5>
									<div>
										<?php if(isset($userList) && !empty($userList)):?>
											
											<?php foreach($user as $userList):?>
												<span><?php echo CHtml::encode($user["UserName"]);?></span>
											<?php endforeach;?>
										<?php else:?>
										<div class="notification information png_bg">
											<div>
												此房间当前为空房间
											</div>
										</div>
										<?php endif;?>
									</div>				
								</div>
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->			
